package com.cn.longdistancebusstation.httpapi;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by mal on 2018/1/22.
 */

public interface WebService {
    //获得接口调用密码
    @GET("GroupGetCallWebServicePWD?unitName=总站北区&searchPWD=jZ!963_66@")
    Call<String> getSecret();

    //获得所有车站信息
    @GET("MobilGetSendStation?encrypt=zh!168aCu&unitName=总站北区")
    Call<String> getStations();

    //获得常用站点
    @GET("MobilGetOftenPort?stationID=1&unitName=总站北区&encrypt=zh!168aCu")
    Call<String> getOftenPorts();

    //获得所有目的站点
    @GET("MobilGetArrivalPort?stationID=1&unitName=总站北区&encrypt=zh!168aCu&searchMode=2&portCode=\"\"")
    Call<String> getDesPorts();

    //获取车次列表（测试环境）
    @GET("MobilFindArrivalBliidHaveDiscountRate?stationID=1&unitName=总站北区&encrypt=zh!168aCu")
    Call<String> getBusList(@Query("PortID") String stationID,
                          @Query("searchDate") String outingDate,
                          @Query("currentDate") String today);

//    //获取车次列表
//    @GET("MobilFindArrivalBliid?stationID=1&unitName=总站北区&encrypt=zh!168aCu")
//    Call<String> getBusList(@Query("PortID") String stationID,
//                            @Query("searchDate") String outingDate,
//                            @Query("currentDate") String today);

    //获取流水班次发车起止时间（最早最晚发车时间）
    @GET("MobilGetFlowBliidSendtime?stationID=1&unitName=总站北区&encrypt=zh!168aCu")
    Call<String> getFlowBusSendTimeDesc(@Query("Bliid") String busNo,
                                    @Query("searchDate") String outingDate);

    //中途站点
    @GET("MobileGetBliidStopPort?stationID=1&unitName=总站北区&encrypt=zh!168aCu")
    Call<String> getPassStations(@Query("bliid") String busNo, @Query("Ticketdate") String outingDate);



    //获取新车次列表（测试环境）
    @GET("MobilFindArrivalBliidAPP?stationID=1&unitName=总站北区&encrypt=zh!168aCu")
    Call<String> getNewBusList(@Query("PortID") String stationID,
                            @Query("searchDate") String outingDate,
                            @Query("currentDate") String today);


}
